<DD>Do not use automatic on-the-fly TAR mode for downloading whole directory trees.
The program uses TAR whenever possible since this usually preserves symbolic links
and file permissions. TAR mode can also result in faster transfers for directories containing many
small files, since a single data connection can be used rather than an FTP
data connection for each small file. The downside to using TAR is that it forces downloading of the whole directory,
even if you had previously downloaded a portion of it earlier, so you may want to use this option if you want to resume downloading of a directory. </DD>
<DT><B>-r </B><I>XX</I> </DT>
<DD>Redial
a maximum of <I>XX</I> times until connected to the remote FTP server. </DD>
<DT><B>-b</B> </DT>
<DD>Run in
background (by submitting a job to <I>ncftpbatch</I>). </DD>
<DT><B>-bb</B> </DT>
<DD>
Similar to <b>-b</b> option, but only submits the batch
job. You will need to run <i>ncftpbatch</i> for the
batch job to be processed. This is useful if you
already have a <i>ncftpbatch</i> process running, or wish
to have better control of when batch jobs are processed.
<P>
For example, if you wanted to do background processing
of three files all on the same remote
server, it is more polite to use just one <i>ncftpbatch</i>
process to process the three jobs sequentially,
rather than having three <i>ncftpbatch</i> processes open
three simultaneous FTP sessions to the same server.
</DD>
<DT><B>-B </B><I>XX</I> </DT>
<DD>Try setting the TCP/IP
socket buffer size to <I>XX</I> bytes. </DD>
</DL>
<DT><B>-W </B><I>XX</I> </DT>
<DD>Send raw FTP command <I>XX</I> after logging in.</DD>
<DT><B>-X </B><I>XX</I> </DT>
<DD>Send raw FTP command <I>XX</I> after each file transferred.</DD>
<DT><B>-Y </B><I>XX</I> </DT>
<DD>
Send raw FTP command <I>XX</I> before logging out.
<P>
The <B>-W</B>, <B>-X</B>, and <B>-Y</B> options are useful for advanced
users who need to tweak behavior on some servers.
For example, users accessing mainframes might need
to send some special SITE commands to set blocksize
and record format information.
<P>
For these options, you can use them multiple times
each if you need to send multiple commands.
For the
<B>-X</B> option, you can use the cookie <TT>%s</TT> to expand
into the name of the file that was transferred.
</DD>
<DT><B>-o </B><I>XX</I> </DT>
<DD>Set advanced option <I>XX</I>.
<P>
This option is used primarily for debugging.
It sets the value of an internal variable to an integer value.
An example usage would be:
<tt>-o useFEAT=0,useCLNT=1</tt>
which in this case, disables use of the
FEAT command and enables use of the CLNT command.
The available variables include:
<tt>usePASV</tt>,
<tt>useSIZE</tt>,
<tt>useMDTM</tt>,
<tt>useREST</tt>,
<tt>useNLST_a</tt>,
<tt>useNLST_d</tt>,
<tt>useFEAT</tt>,
<tt>useMLSD</tt>,
<tt>useMLST</tt>,
<tt>useCLNT</tt>,
<tt>useHELP_SITE</tt>,
<tt>useSITE_UTIME</tt>,
<tt>STATfileParamWorks</tt>,
<tt>NLSTfileParamWorks</tt>,
<tt>require20</tt>,
<tt>allowProxyForPORT</tt>,
<tt>doNotGetStartCWD</tt>.
</DD>
</blockquote>
<H2>Description</H2>
<P>
The purpose of <I>ncftpget</I> is
to do file transfers from the command-line without entering an interactive
shell. This lets you write shell scripts or other unattended processes that
can do FTP. It is also useful for advanced users who want to retrieve files
from the shell command line without entering an interactive FTP program
such as <I>ncftp</I>. <P>
One particularly useful feature of this program is that you
can give it a <I>uniform</I> resource locator as the only argument and the program
will download that file. You can then copy and paste from your web browser
or newsreader and use that URL. Example: <blockquote><pre>$ cd /tmp